@model Amba.ULogin.ViewModels.ULoginPartEditorViewModel
@using Amba.OrchardTools.Extensions
@using Orchard.ContentManagement;

<fieldset>
    <label>@T("Roles for created users")</label>
    @if (Model.AllRoles != null && Model.AllRoles.Any())
    {
        <ul>
            @foreach (var role in Model.AllRoles)
            {
                <li>
                    <input type="checkbox" name="@Html.FieldNameFor(x => x.SelectedRoles)" value="@(role)" @Html.IfTrue(Model.SelectedRoles.Contains(role), "checked='true'")/> @(role)
                </li>
            }
        </ul>
    }
</fieldset>

